package SE2;


import static org.junit.Assert.assertEquals;

import java.util.GregorianCalendar;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

public class PurchaseTest {

	
	Purchase purchase;
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
	purchase = new Purchase();
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testGetDate() throws Exception {
		setUp();
		purchase.setDate(new GregorianCalendar(2010,05,10));
		assertEquals(new GregorianCalendar(2010, 05, 10), purchase.getDate());
		
	}

	
}
